background = AsyncZip ('mydata.txt','myarchive.zip')
background.start()
print ' The main program continues to run in foregroung.'

background.join() #Wait for the background task to finish
print 'main program waited until background was done'

